home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
etc
/
init.d
/
procps
< prev
next >
Wrap
Text File
|
2008-10-27
|
1KB
|
49 lines
#! /bin/sh
# /etc/init.d/procps: Set kernel variables from /etc/sysctl.conf
#
# written by Elrond <Elrond@Wunder-Nett.org>
### BEGIN INIT INFO
# Provides: procps
# Required-Start: mountkernfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Configure kernel parameters at boottime
# Description: Loads kernel parameters that are specified in /etc/sysctl.conf
### END INIT INFO
# Check for existance of the default file and exit if not there,
# Closes #52839 for the boot-floppy people
[ -r /etc/default/rcS ] || exit 0
. /etc/default/rcS
. /lib/lsb/init-functions
PATH=/sbin:$PATH
which sysctl > /dev/null || exit 0
case "$1" in
start|restart|force-reload)
quiet="-q"
if [ "$VERBOSE" = "yes" ]; then
quiet=""
fi
for file in /etc/sysctl.conf /etc/sysctl.d/*.conf ; do
if [ -r "$file" ] ; then
log_action_begin_msg "Setting kernel variables ($file)"
sysctl $quiet -p "$file"
log_action_end_msg $?
fi
done
;;
stop)
;;
*)
echo "Usage: /etc/init.d/procps {start|stop|restart|force-reload}" >&2
exit 3
;;
esac
exit 0